package com.luck.of.wise.somenslider;

import com.luck.of.wise.somenslider.util.Constants;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
	}

	public void onClick(View v){
		Intent i = new Intent(this, SomenSliderActivity.class);
		switch(v.getId()){
		case R.id.buttonServer:
			i.putExtra(Constants.EXTRA_SERVER, 1);
			break;
		case R.id.buttonClient:
			i.putExtra(Constants.EXTRA_SERVER, 0);
			break;
		}
		startActivity(i);
		finish();
	}
}
